package com.woniuxy.service;

import com.alipay.api.AlipayApiException;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
//@LocalTCC
public interface AlipayService {

    /**
     * 支付宝支付调用接口
     * @param response
     * @param request
     * @throws IOException
     */
    void  aliPay(HttpServletResponse response, HttpServletRequest request,String order_number1,String total_amount1,String subject1) throws IOException;
   @TwoPhaseBusinessAction(name = "zhuan",commitMethod = "commit",rollbackMethod = "rollback")
    void zhuan(@BusinessActionContextParameter(paramName = "params")String out_biz_no, String payee_account, String payee_real_name, String amount) throws Exception;
    public boolean commit(BusinessActionContext context);
    public boolean rollback(BusinessActionContext context);
}


